<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<%@include file="isLogin.jsp" %>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登陆之后显示的页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache, must-revalidate">
	<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">    
	<meta http-equiv="keywords" content="Wed, 26 Feb 1997 08:21:57 GMT">

		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <table>
  <tr><td>当前登陆用户：</td><td><%=session.getAttribute("username")%></td></tr>
  <tr><td>sessionId:</td><td><%=session.getId() %></td></tr>
  <tr><td>session创建时间：</td><td><%=new Date(session.getCreationTime()) %></td></tr>
  <tr><td>session最后一次访问时间：</td><td><%=new Date(session.getLastAccessedTime()) %></td></tr>
   <tr><td>session过期时间：</td><td><%=session.getMaxInactiveInterval()/60 %>分钟</td></tr>
    <tr><td>session是否是新的：</td><td><%=session.isNew()%></td></tr>
  
  </table>
  <br/>
  <a href="/session/exit.jsp">退出</a>
   
  </body>
</html>
